/*
 * @Descripttion: 强制使用pnpm包管理器工具
 * @version:
 * @Author: lhl
 * @Date: 2024-09-03 18:00:44
 * @LastEditors: lhl
 * @LastEditTime: 2024-09-03 18:00:51
 */

// 当我们使用npm或者yarn来安装包的时候，就会报错了，这里用来检测是否是pnpm 安装
if (!/pnpm/.test(process.env.npm_execpath || '')) {
  console.warn(
    `\u001b[33mThis repository must using pnpm as the package manager ` + ` for scripts to work properly.\u001b[39m\n`
  );
  process.exit(1);
}
